﻿@model IEnumerable<TCCVoigt.Models.Cliente>

@{
    ViewBag.Title = "Index";
}

<h2>Clientes</h2>

<p>
    <a href="@Url.Action("Create")"><img src="~/Images/ico_add.png" alt="" border="0" style="float: left" />Adicionar</a>
</p>
<table id="grid">
    <tr>
        <th style="width: 60px">Ações</th>
        <th>
            @Html.DisplayNameFor(model => model.Descricao)
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
                <a href="@Url.Action("Edit", new { id = item.Codigo })"><img src="~/Images/ico_edit.png" alt="" border="0"/></a>
                 |
                <a href="@Url.Action("Delete", new { id = item.Codigo })"><img src="~/Images/ico_remove.png" alt="" border="0"/></a>
            </td>
        <td>
            @Html.DisplayFor(modelItem => item.Descricao)
        </td>
    </tr>
}

</table>
